package joodin.impl.widgets.internal;

import org.jowidgets.common.image.IImageConstant;
import org.jowidgets.common.types.Accelerator;
import org.jowidgets.common.widgets.controler.IActionListener;
import org.jowidgets.spi.widgets.IActionMenuItemSpi;

import com.vaadin.ui.Button;

public class PopupButtonImpl implements IActionMenuItemSpi{
	
	private Button button;
	
	public PopupButtonImpl(final Button button) {
		this.button = button;
	}

	@Override
	public Button getUiReference() {
		return button;
	}

	@Override
	public void setEnabled(boolean enabled) {
		getUiReference().setEnabled(enabled);
	}

	@Override
	public boolean isEnabled() {
		return getUiReference().isEnabled();
	}

	@Override
	public void setText(String text) {
		getUiReference().setCaption(text);
	}

	@Override
	public void setToolTipText(String text) {
		getUiReference().setDescription(text);
	}

	@Override
	public void setIcon(IImageConstant icon) {
		
	}

	@Override
	public void setMnemonic(char mnemonic) {
				
	}

	@Override
	public void addActionListener(IActionListener actionListener) {
				
	}

	@Override
	public void removeActionListener(IActionListener actionListener) {
				
	}

	@Override
	public void setAccelerator(Accelerator accelerator) {
				
	}

}
